﻿using System;
using System.Web;
using Rabbit.Logic;
using RabbitManage.Code;

namespace RabbitManage.UI
{
    public partial class ShopDetailEdit : System.Web.UI.Page
    {
        protected Shop item = new Shop();

        protected void Page_Load(object sender, EventArgs e)
        {
            HttpCookie cookie = Request.Cookies[Constant.CookieName];
            string shopId = cookie.Values[Constant.CookieUid];
            item = RabbitUse.GetShopByShopId(Db.Store, shopId);
            if (item.Location == null)
            {
                item.Location = new Address();
            }
        }
    }
}